package gtgold;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.io.*;

class TrailSegment implements Serializable
{
	private static final long serialVersionUID = 1L;
	public final String destination;
	public final int length;

	public TrailSegment(String s, int i)
	{
		destination = s;
		length = i;
	}
}

public class Location implements Serializable
{
	private static final long serialVersionUID = 1L;
	public final String name;
	public final List<TrailSegment> exits;
	public final ItemVec prices;
	public final LocationRiverData river;

	Location(String n, ItemVec p, LocationRiverData r, TrailSegment... x)
	{
		name = n;
		prices = p;
		river = r;
		exits = Collections.unmodifiableList(Arrays.asList(x));
	}

	public boolean isShop()
	{
		return prices != null;
	}

	public boolean isRiver()
	{
		return river != null;
	}
}
